import random


faces = ['红心', '梅花', '黑方', '红方']
cards = ['A', '2', '3', '4', '5', '6', '7', '6', '9', '10', 'J', 'Q', 'K']
#brands = [f'{faces}{cards}' for face in faces for card in cards]---生成式语法
brands = []
for face in faces:
    for card in cards:
        brands.append(f'{face}{card}')
brands.append('大王')
brands.append('小王')
random.shuffle(brands)
print(len(brands))
people_one = []
people_two = []
people_three = []
for _ in range (17):
    people_one.append(brands.pop())
    people_two.append(brands.pop())
    people_three.append(brands.pop())
people_one += brands
print(people_one)
print(people_two)
print(people_three)


#people1, people2, people3 = 0, 0, 0
#while len(brands) > 3:
#attention:玩家要拿一组牌，所以玩家应该是列表，不应该是一串元素
#牌有花色，大小王